<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册新用户</title>
    <link rel="stylesheet" href="./css/register.css">
    <link rel="shortcut icon" href="./favicon.ico">
</head>

<body>
    <form action="./login.html">
        <!-- logo部分 -->
        <div class="logo">
            <div class="w">
                <a href="#">
                    <img src="./images/logo.png" alt="">
                </a>
            </div>
        </div>

        <!-- 注册新用户 -->
        <div class="zuce">
            <div class="w">
                <div class="tp">
                    <h3 class="fl">注册新用户</h3>
                    <div class="fr">
                        我有账号，去<a href="./login.html">登陆</a>
                    </div>
                </div>
            </div>
        </div>

        <!-- 输入手机号，密码 -->
        <div class="zhuce">
            <div class="w">
                <div class="to">
                    <!-- <span class="sjh">手机号:</span>
                <input type="text">
                <span>
                    <img src="./images/error.png" alt="">
                    <span class="cw">手机号码格式不正确，请重新输入</span>
                </span> -->
                    <div class="biao">
                        <ul>
                            <li>
                                <label>手机号:</label>
                                <input type="text">
                                <span class="cuo">
                                    <span class="i"></span>
                                    手机号码格式不正确，请从新输入
                                </span>

                            </li>
                            <li>
                                <label>短信验证码：</label>
                                <input type="text">
                                <span class="dui">
                                    <span class="o"></span>
                                    短信验证码输入正确
                                </span>

                            </li>
                            <li>
                                <label>登录密码：</label>
                                <input type="text">
                                <span class="cuo">
                                    <span class="i"></span>
                                    手机号码格式不正确，请从新输入
                                </span>

                            </li>
                            <div class="anquan">
                                <span class="a">安全程度</span>
                                <em class="ruo">弱</em>
                                <em class="zhong">中</em>
                                <em class="qiang">强</em>
                            </div>
                            <li>
                                <label>确认密码：</label>
                                <input type="text">
                                <span class="cuo">
                                    <span class="i"></span>
                                    手机号码格式不正确，请从新输入
                                </span>

                            </li>
                            <!-- 协议 -->
                        </ul>
                        <div class="xieyi">
                            <label>
                                <input type="checkbox"> 
                                <span class="ty">同意协议并注册</span>
                                <a href="#">《知晓用户协议》</a>
                            </label>
                        </div>

                        <!-- 完成注册 -->
                        <div class="wc">
                            <input type="submit" value="完成注册" onclick="alert('注册成功')"></div>
                    </div>
                </div>
            </div>
        </div>

        </div>
    </form>
    <script>
        const input = document.querySelector('input')
        
         btn.addEventListener('click',()=>{
             if(input.value.trim() === ''){
                alert('请输入账号和密码')
            }
         })
    </script>
</body>

</html>